<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<link rel="stylesheet" href="../layui/css/layui.css">
<script src="../layui/layui.js"></script>
<script>
    $(document).ready(function(){
        $("button").click(function(){
            $(this).hide();
        });
    });
</script>

<script>
    layui.use(['layer', 'form'], function(){
        var layer = layui.layer
            ,form = layui.form;

        layer.msg('Hello World');
    });

</script>
<body>
<button id="test">点我试一下吧</button>
</body>
</html>